import { Injectable } from '@angular/core';
import {Subject} from "rxjs";

@Injectable({
  providedIn: 'root'
})
export class CheckRecordService {

  private CheckRecordSource:Subject<Product> = new Subject<Product>();
  CheckRecord$ = this.CheckRecordSource.asObservable();
  constructor() { }
  sendCheckRecord(product:Product){
    this.CheckRecordSource.next(product);
  }
}
